package com.itheima.neibulei;

public interface Nbl {
    void method();
    void swim();
}
class ShiXian{
    public static void main(String[] args) {
        show(new Nbl() {
            @Override
            public void method() {
                System.out.println("实现:method");
            }

            @Override
            public void swim() {
                System.out.println("实现:swim");
            }
        });
    }
    static void show(Nbl nbl){
        nbl.method();;
        nbl.swim();
    }
}